<?php

include_once 'zie/ZConfig.php';
include_once 'zie/model/ZMessageReader.php';

$reader = new ZMessageReader('13-12-2012', '23-12-2013', 7, '( 1020 )', 2);
$reader->filterByThread(10981993);
try{
	
    print_r($reader->read(function($item, $total) {
		var_dump($item);
        var_dump($total);
    }, 20, 10));
}
catch (Exception $e){
    echo $e->getMessage();
}
